class Father1(object):
    def fatherone_method(self):
        print('father1\'s method')

    def func(self):
        print('1')


class Father2(object):
    def fathertwo_method(self):
        print('father2\'s method')

    def func(self):
        print('2')


# py3支持多继承
class Son(Father1, Father2):
    pass


s = Son()
s.fatherone_method()
s.fathertwo_method()
s.func()
# 射class <subclass_name>(父类1, 父类2, ...):
# object对方法的调用顺序：自己->父类1->父类2->...(深度优先遍历)
# 可以使用__mor__属性查看调用顺序
print(Son.__mro__)  # (<class '__main__.Son'>, <class '__main__.Father1'>, <class '__main__.Father2'>, <class 'object'>)
